package me.myh.demo.controller;

import me.myh.demo.domain.User;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class TestController {

    @RequestMapping("getUser")
    public User getUser() {
        User user = new User();
        user.setId(1L).setAge(18).setName("帆帆").setEmail("ff@163.com");
        return user;
    }

}
